package com.woniuxy.ticketmovie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 
 * </p>
 *
 * @author movie
 * @since 2021-02-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Ticket_type implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @NotNull(message = "Id不能为空",groups = findById.class)
    private Integer id;
    @NotBlank(message = "类型名称不能为空",groups = TypeAdd.class)
    private String name;


}
